package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jdk.nashorn.internal.ir.annotations.Ignore;

import java.io.Serializable;

/**
 * <p>
 * 分类导航
 * </p>
 *
 * @author chenxuebin
 * @since 2018-10-17
 */
@TableName("t_nav")
public class Nav extends Model<Nav> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 导航名称&
     */
	private String name;
    /**
     * 导航图片&
     */
	private String pic;

	private String jianchen;

    /**
     * 导航类别@1：商品分类；2：功能模块&
     */
	private Integer ntype;
    /**
     * 分类值&
     */
	private String nvalue;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 是否系统图标#仅限ntype=2时，使用默认系统图片，用户可以更改自己的
     */
	@TableField("is_self_icon")
	private Integer isSelfIcon;
    /**
     * 是否系统级别
     */
	@TableField("is_system")
	private Integer isSystem;

	@TableField(exist = false)
	private Integer isNav;

	private Long cid;

    /**
     * 启用状态
     */
	private Integer state;

	@JsonIgnore
	private Long mid;
	@JsonIgnore
	private Long mpid;
	@JsonIgnore
	private Long uid;
	@JsonIgnore
	private Date createtime;
	@JsonIgnore
	private Date modifytime;
	@JsonIgnore
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Integer getNtype() {
		return ntype;
	}

	public void setNtype(Integer ntype) {
		this.ntype = ntype;
	}

	public String getNvalue() {
		return nvalue;
	}

	public void setNvalue(String nvalue) {
		this.nvalue = nvalue;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getIsNav() {
		return isNav;
	}

	public void setIsNav(Integer isNav) {
		this.isNav = isNav;
	}

	public Integer getIsSelfIcon() {
		return isSelfIcon;
	}

	public void setIsSelfIcon(Integer isSelfIcon) {
		this.isSelfIcon = isSelfIcon;
	}

	public Integer getIsSystem() {
		return isSystem;
	}

	public void setIsSystem(Integer isSystem) {
		this.isSystem = isSystem;
	}

	public Long getCid() {
		return cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public String getJianchen() {
		return jianchen;
	}

	public void setJianchen(String jianchen) {
		this.jianchen = jianchen;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Nav{" +
			"id=" + id +
			", name=" + name +
			", pic=" + pic +
			", ntype=" + ntype +
			", nvalue=" + nvalue +
			", sort=" + sort +
			", isSelfIcon=" + isSelfIcon +
			", isSystem=" + isSystem +
			", cid=" + cid +
			", state=" + state +
			", mid=" + mid +
			", mpid=" + mpid +
			", uid=" + uid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			", modifier=" + modifier +
			"}";
	}
}
